[INFO] cloning repository https://github.com/CoffeeGooseDev/chip8-emulator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CoffeeGooseDev/chip8-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCoffeeGooseDev%2Fchip8-emulator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCoffeeGooseDev%2Fchip8-emulator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9a2fe0a9d7fab215ec3ea4dce4975a37a7ab102b
[INFO] fixing CoffeeGooseDev/chip8-emulator against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCoffeeGooseDev%2Fchip8-emulator" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/CoffeeGooseDev/chip8-emulator
[INFO] finished tweaking git repo https://github.com/CoffeeGooseDev/chip8-emulator
[INFO] tweaked toml for git repo https://github.com/CoffeeGooseDev/chip8-emulator written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/CoffeeGooseDev/chip8-emulator on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/CoffeeGooseDev/chip8-emulator already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893
[INFO] running `Command { std: "docker" "start" "b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.6
[INFO] [stderr]     Checking chip8_core v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
[INFO] [stdout]    --> src/opcodes.rs:226:67
[INFO] [stdout]     |
[INFO] [stdout] 226 | ...                   let x = (x_coord + x_line) as usize % SCREEN_WIDTH;
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
[INFO] [stdout]    --> src/opcodes.rs:226:67
[INFO] [stdout]     |
[INFO] [stdout] 226 | ...                   let x = (x_coord + x_line) as usize % SCREEN_WIDTH;
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SCREEN_HEIGHT` in this scope
[INFO] [stdout]    --> src/opcodes.rs:227:67
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   let y = (y_coord + y_line) as usize % SCREEN_HEIGHT;
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SCREEN_HEIGHT` in this scope
[INFO] [stdout]    --> src/opcodes.rs:227:67
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   let y = (y_coord + y_line) as usize % SCREEN_HEIGHT;
[INFO] [stdout]     |                                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
[INFO] [stdout]    --> src/opcodes.rs:229:43
[INFO] [stdout]     |
[INFO] [stdout] 229 | ...                   let idx = x + SCREEN_WIDTH * y;
[INFO] [stdout]     |                                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
[INFO] [stdout]    --> src/opcodes.rs:229:43
[INFO] [stdout]     |
[INFO] [stdout] 229 | ...                   let idx = x + SCREEN_WIDTH * y;
[INFO] [stdout]     |                                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Keys`
[INFO] [stdout]  --> src/bus.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 |     keys::{Chip8Keys, Keys},
[INFO] [stdout]   |                       ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Keys`
[INFO] [stdout]  --> src/bus.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 |     keys::{Chip8Keys, Keys},
[INFO] [stdout]   |                       ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:199:41
[INFO] [stdout]     |
[INFO] [stdout] 199 |             Self::IRegAsign(nnn) => cpu.set_i_register(nnn),
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 199 -             Self::IRegAsign(nnn) => cpu.set_i_register(nnn),
[INFO] [stdout] 199 +             Self::IRegAsign(nnn) => cpu.get_register(nnn),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:199:41
[INFO] [stdout]     |
[INFO] [stdout] 199 |             Self::IRegAsign(nnn) => cpu.set_i_register(nnn),
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 199 -             Self::IRegAsign(nnn) => cpu.set_i_register(nnn),
[INFO] [stdout] 199 +             Self::IRegAsign(nnn) => cpu.get_register(nnn),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:217:36
[INFO] [stdout]     |
[INFO] [stdout] 217 |                     let addr = cpu.get_i_register() + y_line as u16;
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:217:36
[INFO] [stdout]     |
[INFO] [stdout] 217 |                     let addr = cpu.get_i_register() + y_line as u16;
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/opcodes.rs:227:48
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   let y = (y_coord + y_line) as usize % SCREEN_HEIGHT;
[INFO] [stdout]     |                                          ^^^^^^ expected `u8`, found `usize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/opcodes.rs:227:48
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   let y = (y_coord + y_line) as usize % SCREEN_HEIGHT;
[INFO] [stdout]     |                                          ^^^^^^ expected `u8`, found `usize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: cannot add `usize` to `u8`
[INFO] [stdout]    --> src/opcodes.rs:227:46
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   let y = (y_coord + y_line) as usize % SCREEN_HEIGHT;
[INFO] [stdout]     |                                        ^ no implementation for `u8 + usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Add<usize>` is not implemented for `u8`
[INFO] [stdout] help: the following other types implement trait `Add<Rhs>`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/internal_macros.rs:22:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `&u8` implements `Add<u8>`
[INFO] [stdout]    ::: /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/internal_macros.rs:33:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `u8` implements `Add<&u8>`
[INFO] [stdout]    ::: /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/internal_macros.rs:44:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `&u8` implements `Add`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/ops/arith.rs:98:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `u8` implements `Add`
[INFO] [stdout]    ::: /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/ops/arith.rs:113:0
[INFO] [stdout]     |
[INFO] [stdout]     = note: in this macro invocation
[INFO] [stdout]     = note: this error originates in the macro `forward_ref_binop` which comes from the expansion of the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: cannot add `usize` to `u8`
[INFO] [stdout]    --> src/opcodes.rs:227:46
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   let y = (y_coord + y_line) as usize % SCREEN_HEIGHT;
[INFO] [stdout]     |                                        ^ no implementation for `u8 + usize`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Add<usize>` is not implemented for `u8`
[INFO] [stdout] help: the following other types implement trait `Add<Rhs>`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/internal_macros.rs:22:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `&u8` implements `Add<u8>`
[INFO] [stdout]    ::: /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/internal_macros.rs:33:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `u8` implements `Add<&u8>`
[INFO] [stdout]    ::: /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/internal_macros.rs:44:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `&u8` implements `Add`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/ops/arith.rs:98:8
[INFO] [stdout]     |
[INFO] [stdout]     = note: `u8` implements `Add`
[INFO] [stdout]    ::: /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/ops/arith.rs:113:0
[INFO] [stdout]     |
[INFO] [stdout]     = note: in this macro invocation
[INFO] [stdout]     = note: this error originates in the macro `forward_ref_binop` which comes from the expansion of the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_pixel` found for mutable reference `&mut B` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:230:45
[INFO] [stdout]     |
[INFO] [stdout] 230 | ...                   let pixel = bus.get_pixel(idx);
[INFO] [stdout]     |                                       ^^^^^^^^^ method not found in `&mut B`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the type parameter is bounded by the trait
[INFO] [stdout] help: the following traits define an item `get_pixel`, perhaps you need to restrict type parameter `B` with one of them:
[INFO] [stdout]     |
[INFO] [stdout] 122 |     pub fn execute<B: Bus + Frame, C: Cpu<Data = u8, Addr = u16>>(self, bus: &mut B, cpu: &mut C) {
[INFO] [stdout]     |                           +++++++
[INFO] [stdout] 122 |     pub fn execute<B: Bus + Screen, C: Cpu<Data = u8, Addr = u16>>(self, bus: &mut B, cpu: &mut C) {
[INFO] [stdout]     |                           ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_pixel` found for mutable reference `&mut B` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:230:45
[INFO] [stdout]     |
[INFO] [stdout] 230 | ...                   let pixel = bus.get_pixel(idx);
[INFO] [stdout]     |                                       ^^^^^^^^^ method not found in `&mut B`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the type parameter is bounded by the trait
[INFO] [stdout] help: the following traits define an item `get_pixel`, perhaps you need to restrict type parameter `B` with one of them:
[INFO] [stdout]     |
[INFO] [stdout] 122 |     pub fn execute<B: Bus + Frame, C: Cpu<Data = u8, Addr = u16>>(self, bus: &mut B, cpu: &mut C) {
[INFO] [stdout]     |                           +++++++
[INFO] [stdout] 122 |     pub fn execute<B: Bus + Screen, C: Cpu<Data = u8, Addr = u16>>(self, bus: &mut B, cpu: &mut C) {
[INFO] [stdout]     |                           ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_pixel` found for mutable reference `&mut B` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:233:33
[INFO] [stdout]     |
[INFO] [stdout] 233 | ...                   bus.set_pixel(idx, pixel ^ true);
[INFO] [stdout]     |                           ^^^^^^^^^ method not found in `&mut B`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_pixel` found for mutable reference `&mut B` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:233:33
[INFO] [stdout]     |
[INFO] [stdout] 233 | ...                   bus.set_pixel(idx, pixel ^ true);
[INFO] [stdout]     |                           ^^^^^^^^^ method not found in `&mut B`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/opcodes.rs:246:46
[INFO] [stdout]     |
[INFO] [stdout] 246 |                 let key = bus.is_key_pressed(vx as usize);
[INFO] [stdout]     |                               -------------- ^^^^^^^^^^^ expected `u8`, found `usize`
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/bus.rs:27:8
[INFO] [stdout]     |
[INFO] [stdout]  27 |     fn is_key_pressed(&self, key_id: u8) -> bool;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^        ------
[INFO] [stdout] help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit
[INFO] [stdout]     |
[INFO] [stdout] 246 |                 let key = bus.is_key_pressed((vx as usize).try_into().unwrap());
[INFO] [stdout]     |                                              +           +++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/opcodes.rs:246:46
[INFO] [stdout]     |
[INFO] [stdout] 246 |                 let key = bus.is_key_pressed(vx as usize);
[INFO] [stdout]     |                               -------------- ^^^^^^^^^^^ expected `u8`, found `usize`
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/bus.rs:27:8
[INFO] [stdout]     |
[INFO] [stdout]  27 |     fn is_key_pressed(&self, key_id: u8) -> bool;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^        ------
[INFO] [stdout] help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit
[INFO] [stdout]     |
[INFO] [stdout] 246 |                 let key = bus.is_key_pressed((vx as usize).try_into().unwrap());
[INFO] [stdout]     |                                              +           +++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/opcodes.rs:253:46
[INFO] [stdout]     |
[INFO] [stdout] 253 |                 let key = bus.is_key_pressed(vx as usize);
[INFO] [stdout]     |                               -------------- ^^^^^^^^^^^ expected `u8`, found `usize`
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/bus.rs:27:8
[INFO] [stdout]     |
[INFO] [stdout]  27 |     fn is_key_pressed(&self, key_id: u8) -> bool;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^        ------
[INFO] [stdout] help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit
[INFO] [stdout]     |
[INFO] [stdout] 253 |                 let key = bus.is_key_pressed((vx as usize).try_into().unwrap());
[INFO] [stdout]     |                                              +           +++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/opcodes.rs:253:46
[INFO] [stdout]     |
[INFO] [stdout] 253 |                 let key = bus.is_key_pressed(vx as usize);
[INFO] [stdout]     |                               -------------- ^^^^^^^^^^^ expected `u8`, found `usize`
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               arguments to this method are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/bus.rs:27:8
[INFO] [stdout]     |
[INFO] [stdout]  27 |     fn is_key_pressed(&self, key_id: u8) -> bool;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^        ------
[INFO] [stdout] help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit
[INFO] [stdout]     |
[INFO] [stdout] 253 |                 let key = bus.is_key_pressed((vx as usize).try_into().unwrap());
[INFO] [stdout]     |                                              +           +++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_dt_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:259:43
[INFO] [stdout]     |
[INFO] [stdout] 259 |                 cpu.asign_register(x, cpu.get_dt_register());
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_dt_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:259:43
[INFO] [stdout]     |
[INFO] [stdout] 259 |                 cpu.asign_register(x, cpu.get_dt_register());
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `keys` on type `Instruction<u8, u16>`
[INFO] [stdout]    --> src/opcodes.rs:264:34
[INFO] [stdout]     |
[INFO] [stdout] 264 |                 for i in 0..self.keys.len() {
[INFO] [stdout]     |                                  ^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `keys` on type `Instruction<u8, u16>`
[INFO] [stdout]    --> src/opcodes.rs:264:34
[INFO] [stdout]     |
[INFO] [stdout] 264 |                 for i in 0..self.keys.len() {
[INFO] [stdout]     |                                  ^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_dt_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:279:21
[INFO] [stdout]     |
[INFO] [stdout] 279 |                 cpu.set_dt_register(c);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 279 -                 cpu.set_dt_register(c);
[INFO] [stdout] 279 +                 cpu.get_register(c);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_dt_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:279:21
[INFO] [stdout]     |
[INFO] [stdout] 279 |                 cpu.set_dt_register(c);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 279 -                 cpu.set_dt_register(c);
[INFO] [stdout] 279 +                 cpu.get_register(c);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_st_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:283:21
[INFO] [stdout]     |
[INFO] [stdout] 283 |                 cpu.set_st_register(c);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 283 -                 cpu.set_st_register(c);
[INFO] [stdout] 283 +                 cpu.get_register(c);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_st_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:283:21
[INFO] [stdout]     |
[INFO] [stdout] 283 |                 cpu.set_st_register(c);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 283 -                 cpu.set_st_register(c);
[INFO] [stdout] 283 +                 cpu.get_register(c);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:286:21
[INFO] [stdout]     |
[INFO] [stdout] 286 |                 cpu.set_i_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 286 -                 cpu.set_i_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout] 286 +                 cpu.get_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:286:21
[INFO] [stdout]     |
[INFO] [stdout] 286 |                 cpu.set_i_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 286 -                 cpu.set_i_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout] 286 +                 cpu.get_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:286:40
[INFO] [stdout]     |
[INFO] [stdout] 286 |                 cpu.set_i_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:286:40
[INFO] [stdout]     |
[INFO] [stdout] 286 |                 cpu.set_i_register(cpu.get_i_register().wrapping_add(cpu.get_register(x)))
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:290:21
[INFO] [stdout]     |
[INFO] [stdout] 290 |                 cpu.set_i_register(c * 5);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 290 -                 cpu.set_i_register(c * 5);
[INFO] [stdout] 290 +                 cpu.get_register(c * 5);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `set_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:290:21
[INFO] [stdout]     |
[INFO] [stdout] 290 |                 cpu.set_i_register(c * 5);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 290 -                 cpu.set_i_register(c * 5);
[INFO] [stdout] 290 +                 cpu.get_register(c * 5);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:300:33
[INFO] [stdout]     |
[INFO] [stdout] 300 |                 let i_reg = cpu.get_i_register();
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:300:33
[INFO] [stdout]     |
[INFO] [stdout] 300 |                 let i_reg = cpu.get_i_register();
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:306:29
[INFO] [stdout]     |
[INFO] [stdout] 306 |                 let i = cpu.get_i_register() as usize;
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:306:29
[INFO] [stdout]     |
[INFO] [stdout] 306 |                 let i = cpu.get_i_register() as usize;
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `chip8_core` (lib) due to 21 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `chip8_core` (lib test) due to 21 previous errors; 4 warnings emitted
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:313:29
[INFO] [stdout]     |
[INFO] [stdout] 313 |                 let i = cpu.get_i_register() as usize;
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_i_register` found for mutable reference `&mut C` in the current scope
[INFO] [stdout]    --> src/opcodes.rs:313:29
[INFO] [stdout]     |
[INFO] [stdout] 313 |                 let i = cpu.get_i_register() as usize;
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `get_register` with a similar name, but with different arguments
[INFO] [stdout]    --> src/cpu.rs:38:5
[INFO] [stdout]     |
[INFO] [stdout]  38 |     fn get_register(&self, r_num: usize) -> Self::Data;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/memory.rs:40:13
[INFO] [stdout]    |
[INFO] [stdout] 40 |         let mut ram = Self {
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/memory.rs:40:13
[INFO] [stdout]    |
[INFO] [stdout] 40 |         let mut ram = Self {
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/screen.rs:42:25
[INFO] [stdout]    |
[INFO] [stdout] 42 |     fn get_pixel(&self, x: usize, y: usize) -> bool {
[INFO] [stdout]    |                         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/screen.rs:42:25
[INFO] [stdout]    |
[INFO] [stdout] 42 |     fn get_pixel(&self, x: usize, y: usize) -> bool {
[INFO] [stdout]    |                         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/screen.rs:42:35
[INFO] [stdout]    |
[INFO] [stdout] 42 |     fn get_pixel(&self, x: usize, y: usize) -> bool {
[INFO] [stdout]    |                                   ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/screen.rs:42:35
[INFO] [stdout]    |
[INFO] [stdout] 42 |     fn get_pixel(&self, x: usize, y: usize) -> bool {
[INFO] [stdout]    |                                   ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893", kill_on_drop: false }`
[INFO] [stdout] b66200fa952b79259c0f3d2e9eb982085f8e63386da96b2e0e9d9b7d20c34893
